package com.example;

import com.example.dao.BookDao;
import lombok.val;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class Springboot07AopDemoApplication {

	public static void main(String[] args) {
		ApplicationContext context = SpringApplication.run(Springboot07AopDemoApplication.class, args);
		BookDao bookDao = context.getBean(BookDao.class);
//		bookDao.save();
//		bookDao.update();
//		bookDao.delete();
		bookDao.select();
	}

}
